//引入公共文件
import '@utils/init.js'

import ajax from '@utils/ajax.js'

//新增专业
$('#addProfessionBtn').click(async() => {
    const name = $('#professionName').val();
    const res = await ajax({
        url: '/profession/addProfession',
        type: "POST",
        data: {
            name,
        },
    })
    if (res.code) {
        alert('专业新增成功')
    }
})